package com.moli.iov.admin.mq.activemq;

import javax.jms.Queue;
import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * activeMQ
 * </p>
 *
 * @author zql
 * @since 2019/9/16 13:09
 */
@Configuration
public class ActiveMqConfig {

  @Value("${activemq.delay.topic}")
  private String activemqDelayTopic;

  @Bean("delayTopic")
  public ActiveMQTopic delayTopic(){
    return new ActiveMQTopic(activemqDelayTopic);
  }
}
